<div class="modal-header">
  <div class="modal-title">
    <span *ngIf="id">修改用户 - {{i.name}}</span>
    <span *ngIf="!id">新增用户 - {{i.name}}</span>
  </div>
</div>
测试
<nz-spin *ngIf="!i" class="modal-spin"></nz-spin>
<sf *ngIf="i" #sf mode="edit" [schema]="schema" [formData]="i" button="none">
  <div class="modal-footer">
    <button nz-button type="button" (click)="close()">关闭</button>
    <button nz-button type="submit" [nzType]="'primary'" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="loading">保存</button>
  </div>
</sf>